From: Keir Fraser Date: Mon, 4 May 2009 21:52:18 +0000 (+0100) Subject: x86: Fix a couple of asm constraints. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13935 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=8d305f1efe7be67f9b1083f6e7fa02ad5f097c17;p=xen.git x86: Fix a couple of asm constraints. Signed-off-by: Keir Fraser --- diff --git a/xen/arch/x86/traps.c b/xen/arch/x86/traps.c index 98555a42d4..0b134a3c10 100644 --- a/xen/arch/x86/traps.c +++ b/xen/arch/x86/traps.c @@ -1364,11 +1364,11 @@ static int read_descriptor(unsigned int sel, asm volatile ( "larl %2,%0 ; setz %1" - : "=r" (a), "=rm" (valid) : "rm" (sel)); + : "=r" (a), "=qm" (valid) : "rm" (sel)); BUG_ON(valid && ((a & 0x00f0ff00) != *ar)); asm volatile ( "lsll %2,%0 ; setz %1" - : "=r" (l), "=rm" (valid) : "rm" (sel)); + : "=r" (l), "=qm" (valid) : "rm" (sel)); BUG_ON(valid && (l != *limit)); } #endif